package gemini.castor.ui.client.page.content.home.apply.distributorid;

import gemini.basic.model.Person;
import gemini.castor.ui.client.page.widget.distributorid.DistributorIdObject;

import java.util.List;

import com.google.gwt.validation.client.NotEmpty;
import com.google.gwt.validation.client.interfaces.IValidatable;


public class DistributorIDFormObject implements IValidatable {
	
	private List<Person> persons;
	
	private String code;
	
	@NotEmpty
	private String pin;
	
	@NotEmpty
	private String retypePin;
	
	private DistributorIdObject sponsor;
	
	public DistributorIDFormObject(){
		sponsor = new DistributorIdObject();
	}
	
	public void setSponsor(DistributorIdObject sponsor) {
		this.sponsor = sponsor;
	}

	public DistributorIdObject getSponsor() {
		return sponsor;
	}

	public void setPin(String pin) {
		this.pin = pin;
	}

	public String getPin() {
		return pin;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setRetypePin(String retypePin) {
		this.retypePin = retypePin;
	}

	public String getRetypePin() {
		return retypePin;
	}

	public void setPersons(List<Person> persons) {
		this.persons = persons;
	}

	public List<Person> getPersons() {
		return persons;
	}
}
